home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / python / runtime.d / pycentral.rtupdate < prev    next >
Text File  |  2009-10-11  |  303b  |  15 lines

  1. #! /bin/sh -e
  2.  
  3. cmd="$1"
  4. oldruntime="$2"
  5. newruntime="$3"
  6.  
  7. [ "$cmd" = rtupdate ] || exit 0
  8.  
  9. if which python >/dev/null 2>&1 && which pycentral >/dev/null 2>&1; then
  10.     pycentral updatedefault $oldruntime $newruntime
  11. else
  12.     echo >&2 "python or pycentral not found in $(basename $0) hook."
  13.     exit 1
  14. fi
  15.